From: Adel Gadllah Date: Tue, 18 Jun 2013 20:43:25 +0000 (+0200) Subject: osdWindow: Don't call enable_unredirection on startup X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4028 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9e44978aed39a5bade75fa17450438d87f4c3c8f;p=gnome-shell.git osdWindow: Don't call enable_unredirection on startup This is wrong because it is already enabled. So move this to out of reset, which gets called from _init(). --- diff --git a/js/ui/osdWindow.js b/js/ui/osdWindow.js index 340702ae8..7d9510dbb 100644 --- a/js/ui/osdWindow.js +++ b/js/ui/osdWindow.js @@ -167,14 +167,16 @@ const OsdWindow = new Lang.Class({ { opacity: 0, time: FADE_TIME, transition: 'easeOutQuad', - onComplete: Lang.bind(this, this._reset) }); + onComplete: Lang.bind(this, function() { + this._reset(); + Meta.enable_unredirect_for_screen(global.screen); + }); }, _reset: function() { this.actor.hide(); this.setLabel(null); this.setLevel(null); - Meta.enable_unredirect_for_screen(global.screen); }, _monitorsChanged: function() {